Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to node 22 #44

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

chore: upgrade to node 22 #44

wants to merge 4 commits into from

Conversation

andrew-wang0
Copy link
Member

Description

Upgrade to node 22 and refactor usages of Array.from to iterator.toArray()

Related Issue

closes #32

Motivation and Context

How Has This Been Tested?

Ran scrapers locally and tested changed services by hitting endpoints

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code involves a change to the database schema.
  • My code requires a change to the documentation.

@andrew-wang0 andrew-wang0 mentioned this pull request Nov 27, 2024
5 tasks
Copy link
Member

@ecxyzzy ecxyzzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me, some minor nits though. Thanks for taking this on 💪

apps/api/src/services/search.ts Outdated Show resolved Hide resolved
apps/data-pipeline/degreeworks-scraper/package.json Outdated Show resolved Hide resolved
apps/data-pipeline/grades-importer/package.json Outdated Show resolved Hide resolved
packages/stdlib/package.json Outdated Show resolved Hide resolved
apps/data-pipeline/websoc-scraper/src/lib.ts Outdated Show resolved Hide resolved
Comment on lines +646 to 647
.toArray()
.map(([meetingId, v]) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I'm dumb and missed this 🤦 This can be map then toArray as well

.map(([key, rank]) => ({
type: "course" as const,
result: getFromMapOrThrow(courses, key),
rank,
}))
.toArray()
.slice(input.skip, input.skip + input.take),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also missed this - can be converted to .drop and .take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Node 22 and clean up relevant code
2 participants